project(_webrtc_audio_processing)

add_library(${PROJECT_NAME} SHARED webrtc_audio_processing_wrap.cxx)

target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
#set_target_properties(${PROJECT_NAME} PROPERTIES SUFFIX ".pyd")
#target_compile_options(${PROJECT_NAME} PRIVATE /Zi)
#target_link_options(${PROJECT_NAME} PRIVATE /DEBUG:FULL)
target_include_directories(${PROJECT_NAME} PRIVATE ${Python3_INCLUDE_DIRS})
if (WIN32)
    target_link_libraries(${PROJECT_NAME} PUBLIC Winmm)
endif()
target_link_libraries(${PROJECT_NAME} PRIVATE audio-coding webrtc-audio-processing-api ${Python3_LIBRARIES})